/**
 * NCGet.java
 */
package commands.nc;

import dataTypes.File;
import dataTypes.Host;


/**
 * 
 * @author maciek
 *
 */
public class NCGet extends NetworkControllerCommand
{
	private Host host;
	private File file;
	private int partNumber;
	
	/**
	 * 
	 * @param host host to get file from
	 * @param file what file to get
	 * @param partNumber number of segment to get
	 */
	public NCGet(Host host,File file,int partNumber)
	{
		super(NetworkControllerCommandType.GET);
		this.host=host;
		this.file=file;
		this.partNumber=partNumber;
	}

	/**
	 * 
	 * @return what host to get from
	 */
	public Host getHost()
	{
		return host;
	}

	/**
	 * 
	 * @return what file to get
	 */
	public File getFile()
	{
		return file;
	}

	/**
	 * 
	 * @return which segment to get
	 */
	public int getPartNumber()
	{
		return partNumber;
	}
}
